package com.mes.biz.mapper;

import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.biz.domain.BizProductProcessDetail;

import java.util.List;

/**
 * 工序计划明细Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-05-03
 */
public interface BizProductProcessDetailMapper extends BaseMapper<BizProductProcessDetail>
{

    /**
     * 批量删除工序计划明细
     * @param ids 需要删除的工序计划明细ID集合
     * @return
     */
    public int deleteBizProductProcessDetailByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    /**
     * 删除工序计划明细
     * @param processPlanId
     */
    void deleteByProcessPlanId(@Param("processPlanId") String processPlanId, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    /**
     * 批量保存
     * @param bizProductProcessDetails
     */
    int saveBatch(List<BizProductProcessDetail> bizProductProcessDetails);


    List<BizProductProcessDetail> getBizProductProcessDetailByProcessPlanId(@Param("processPlanId") String processPlanId);
}
